package com.zhaiweijia.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.zhaiweijia.dao.ChannelDao;
import com.zhaiweijia.entity.Category;
import com.zhaiweijia.entity.Channel;
import com.zhaiweijia.service.ChannelService;
@Service
public class ChannelServiceImpl implements ChannelService{

	@Autowired
	private ChannelDao channelDao;

	@Override
	public List<Channel> getChannels() {
		// TODO Auto-generated method stub
		return channelDao.getChannels();
	}

	@Override
	public List<Category> getCategoryIdByChannelId(Integer channelId) {
		// TODO Auto-generated method stub
		return channelDao.getCategoryIdByChannelId(channelId);
	}
	
	
}
